package com.zhuiyi.yiqingbackend.domain;

import com.zhuiyi.yiqingbackend.domain.request.AddCureRequest;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Cure implements Serializable {
    private static final long serialVersionUID = 1L;
    private  int id ;
    private int baseId ;
    private String current;
    private Date dischargeDate;
    private Base base;
    public Cure(AddCureRequest request, int baseid) {
        this.baseId = baseid;
        this.current = request.getCurrent();
        this.dischargeDate = request.getDischargeDate();
    }

    public Cure(int baseid, String current, Date dischargeDate) {
        this.baseId=baseid;
        this.current=current;
        this.dischargeDate=dischargeDate;
    }

    public Cure(int baseId) {
        this.baseId=baseId;
    }
}
